<script type="text/javascript">
<!--
	function checkForm()
	{ldelim}
		if (jQuery.trim($('#g_name').val()) == '') {ldelim}
			alert('Bạn chưa nhập tên Group Modules');
			$('#g_name').focus();
			return false;
		{rdelim}
		return true;
	{rdelim}
	/**
	 * @function executeCancel
	 *
	 *
	 */
	function executeCancel()
	{ldelim}
		window.history.back(-1);
	{rdelim}
//-->
</script>
<div id="leftBox">
<div class="{$clsType}Box" style="display:{$msgBoxDisp}">
  <div class="{$clsType}BoxTop" style="display:{$msgBoxDisp}">&nbsp;</div>
  	{foreach from=$messages item=arrMsg}
    	{foreach from=$arrMsg item=msg}
    	<div class="msgBoxContent {$clsIcon}">
      	<p>{$msg}</p>
      	</div>
      {/foreach}
    {/foreach}
</div>
<form id="mainForm" name="mainForm" method="post" action="{$actionForm}">
<div class="contentBox" id="forms">
  <div class="contentBoxTop"><h3>Thêm / Chỉnh sửa Group Modules</h3><ul class="switcherTabs">
    </ul>
  </div>

      <div class="innerContent" id="box-1"><p><strong>Tên Group</strong><em> (Tên Group sẽ được làm menu trong admin)</em><br>
          <label class="smallInput">
          	<input name="g_name" id="g_name" value="{$groupMode->g_name|escape}" style="width: 168px;" type="text">
          </label>
          </p>
          <p>
		  <div>
		  	<br><strong>Module thuộc Group</strong><br>
              {foreach from=$arrModule item=row}
              <ul style="display:block;">
              	{foreach from=$row item=relamodule}
              	<li style="width:155px; float:left;">
              	  <label for="m_name{$relamodule->m_id}">
              		<input name="m_name[{$relamodule->m_id}]" id="m_name{$relamodule->m_id}" value="{$relamodule->m_id}" type="checkbox" {$relamodule->checked}><a style="text-decoration:none;" title="{$relamodule->m_discr|escape}">{$relamodule->m_name|escape}</a>
              	  </label>
              	</li>
              	{/foreach}
              </ul>
              {/foreach}
		  </div>
		  <div style="clear:both;"></div>
          </p><p>
            <input name="" src="{$base_media}/images/bt_submit.gif" onclick="return checkForm();" type="image">
          </p>
      </div>

</div>
<input name="group_id" id="group_id" value="{$group_id}" type="hidden">
</form>
</div>

<div id="sidebar" class="rightBoxes">
  <div class="rightBoxesTop">
    <h3>Chức năng<br></h3>
  </div>
  <div class="rightContent">
    <ul id="sidebarLinks">
      <li><a href="javascript:void(0);" onclick="javascript:executeCancel()">##SUBMIT_CANCEL##</a></li>
    </ul>
  </div>
</div>
<!-- end of #sidebar -->
